<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script src="jquery-2.0.3.js"></script>
<script>

$(function(){
	
	/*var str = '<li>1</li><li>2</li><li>3</li><script>alert(4)<\/script>';
	
	var arr = jQuery.parseHTML(str,document,true);  //['li','li','li']
	
	$.each(arr,function(i){
		
		$('ul').append( arr[i] );
		
	});*/
	
	//var arr = ['a','b'];
	
	/*var arr = {
		0 : 'a',
		1 : 'b',
		length : 2
	};
	
	var arr2 = ['c','b'];
	
	console.log( $.merge(arr,arr2) );*/
	
	$('<li></li>',{title : 'hi',html : 'abcd',css : {background:'red'}}).appendTo( 'ul' );
	
	//this.html('abcd')
	
	//<li>
	//<li></li>
	
});

</script>
</head>

<body>
<ul>
</ul>
</body>
</html>
